﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    //扫描点单上传
    public class ScanOrder
    {
        /// <summary>
        /// 
        /// </summary>
        public string storeId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string posNo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string deskNo { get; set; }
        /// <summary>
        /// 会员编号
        /// </summary>
        public string memberno { get; set; }
        /// <summary>
        /// 交易时间
        /// </summary>
        public string systemdate { get; set; }
        /// <summary>
        /// 小计前折扣
        /// </summary>
        public decimal promBeforeDiscAmt { get; set; }
        /// <summary>
        /// 小计后折扣
        /// </summary>
        public decimal promAfterDiscAmt { get; set; }
        /// <summary>
        /// 实际销售金额
        /// </summary>
        public decimal saleAmt { get; set; }
        /// <summary>
        /// 商品列表
        /// </summary>
        //public string productInfoJson { get; set; }
        public List<OrderItem> productInfoJson { get; set; }

        //商品明细
        public class OrderItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int flineno { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string customerCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string erpCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string pluName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal originalPrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public decimal pluPrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int qty { get; set; }
            /// <summary>
            /// 小计前折扣
            /// </summary>
            public decimal promBeforeDiscAmt { get; set; }
            /// <summary>
            /// 小计后折扣
            /// </summary>
            public decimal promAfterDiscAmt { get; set; }
            /// <summary>
            /// 实际销售金额
            /// </summary>
            public decimal saleAmt { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
            /// <summary>
            /// 口味列表
            /// </summary>
            public List<skuProperty> skuPropertys { get; set; }
        }

        public class skuProperty
        {
            /// <summary>
            /// 
            /// </summary>
            public string groupId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string propertyId { get; set; }
        }
    }
}
